package com.whc.message.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("消息实体类")
public class Message implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    /**
     * 正文
     */
    private String content;
    /**
     * 消息id
     */
    private long id;
    //发送方id
    private long senderId;
    //接收方id
    private long accepterId;
    //是否删除 1 0
    private int type;
}
